<template>
  <div>
    我是father组件
    <son @handler="handlerson" :text="content"></son>
  </div>
</template>
<script>

import son from './son1.vue'
export default {
  name: '',
  components: {
    son
  },
  data () {
    return {
      //父向子传值
      content: '我是你爹father'
    }
  },
  created () {

  },
  computed: {
  },
  methods: {
    handlerson (sonmes) {
      console.log(sonmes);
    }
  }
}
</script>
<style lang='less'  scoped>
</style>
